package cn.fanyamin.model;

import java.util.Map;

public class Role {
    private String roleId;
    private String roleName;
    private Map<String,Permission> permissions;
    
    public String getRoleId() {
        return roleId;
    }
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
    public String getRoleName() {
        return roleName;
    }
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    public Map<String, Permission> getPermissions() {
        return permissions;
    }
    public void setPermissions(Map<String, Permission> permissions) {
        this.permissions = permissions;
    }
    
    public Permission getPermission(String permissionId) {
        return this.permissions.get(permissionId);
    }
    
    
}
